package sipus.common;

import org.hibernate.Session;
import org.hibernate.criterion.Restrictions;

import sipus.database.hibernate.HibernateUtil;
import sipus.database.model.Tbmrole;


public class ConstantValues {

	public final static Tbmrole roleAdmin;

	static {
		Session session = HibernateUtil.getSessionFactory().openSession();

		roleAdmin = (Tbmrole) session.createCriteria(Tbmrole.class)
				.add(Restrictions.idEq("am")).uniqueResult();
		session.close();

	}

}
